<!-- 我的弹窗 -->

<template>
  <WebModal word="备品分类" medium>
    <WebForm>
      <EasyRow col2>
        <FormInput label="商品编号" bind="spareCode" disabled required />
        <FormSelect label="备品类型" bind="spareTypeId, spareTypeName, spareTypeCode" :dict="CORE.DICT.material_type" />
      </EasyRow>

      <EasyRow col2>
        <FormInput label="备品名称" bind="spareName" required />
        <FormInput label="规格型号" bind="model" />
      </EasyRow>

      <EasyRow col2>
        <FormSelect
          label="单位"
          bind="unitId, unitName, unitCode"
          :dict="CORE.DICT.material_unit"
          tip="单位"
          required
        />
        <FormNum label="单价 (元)" bind="price" :min="0" :max="9999" rightBtn string dec2 />
      </EasyRow>
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>
